package com.qinglei.recoup.system.pojo;

import com.qinglei.recoup.common.domain.RegexpConstant;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@Data
public class AddMonitorTimeParam {
    @ApiModelProperty(value = "类型 1-床 2-房间 3-层 4-楼")
    @NotNull
    private Integer type;

    @ApiModelProperty(value = "床ID|房间ID|层ID|楼ID")
    @NotNull
    private String objId;

    @ApiModelProperty("开始时间 格式 09:00")
    @Pattern(regexp = RegexpConstant.TIME_REG, message = "{time}")
    private String startTime;

    @ApiModelProperty("结束时间 格式 09:00")
    @Pattern(regexp = RegexpConstant.TIME_REG, message = "{time}")
    private String endTime;
}
